
const book = require("../../src/book/bookService");
module.exports = {
  path: "/book",
  name: "book模块",
  children: [
    {
      path: "/add",
      name: "添加",
      service: book["add"],
      params: {
        name: "book"
      }
    },
     {
       path: "/list",
       name: "列表",
       service: book["all"],
       params: {
        //  currPage: "当前页",
        //  pageSize: "每页条数",
       }
     },
    //  {
    //    path: "/all",
    //    name: "列表",
    //    service: book["all"], 
    //  },
    {
      path: "/find",
      name: "根据条件查找",
      service: book["find"],
      params: {
        
      }
    },
       {
       path: "/detail",
       name: "详情",
       service: book["detail"],
       params: {
         bookId: "bookId"
       }
     },
     {
       path: "/edit",
       name: "修改",
       service: book["edit"],
       params: {
         bookId: "bookId"
       }
     },
     {
       path: "/del",
       name: "删除",
       service: book["del"],
       params: {
         bookId: "bookId"
       }
     }
  ]
};
